package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shuiyun
 * @program gateway
 * @description 临时位置跟踪控制
 * @date 2022-04-29 13:59
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Message(JT808.临时位置跟踪控制0x8202)
public class T8202 extends JTMessage {

    @ApiModelProperty(value = "时间间隔(秒)",example = "10")
    @FieldValue(type = DataType.WORD,desc = "时间间隔")
    private Integer interval;

    @ApiModelProperty(value = "位置跟踪有效期(秒)",example = "120")
    @FieldValue(type = DataType.DWORD,desc = "位置跟踪有效期")
    private Integer validityPeriod;
}
